home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CD32 / CD32-Tools / cdmpeg-110 / Include / disp_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-10  |  1.3 KB  |  60 lines

  1. /******************
  2.  
  3.      disp_def.h
  4.  
  5.  Created    W.D.L 930507
  6.  
  7. *******************/
  8.  
  9. #include    <iffp/ilbm.h>
  10.  
  11. //----
  12. #define SCREEN_WIDTH        640
  13. #define NTSC_HEIGHT        400
  14. #define PAL_HEIGHT        512
  15.  
  16. #define    MAX_CRNG        8
  17.  
  18. // Display definition and control structure
  19. typedef    struct DisplayDefinition
  20. {
  21.     SHORT          Left;
  22.     SHORT          Top;
  23.     SHORT          Width;
  24.     SHORT          Height;
  25.     SHORT          Depth;
  26.     SHORT          NominalWidth;
  27.     SHORT          NominalHeight;
  28.     ULONG          Flags;
  29.     ULONG          ModeID;
  30.     struct BitMap    * bm[2];
  31.     struct ViewPort    * vp;
  32.     struct DBufInfo * dbuf;
  33.     struct Screen    * screen;
  34.     struct Window    * window;
  35.     WORD        * colorrecord;    /* Passed to LoadRGB32 (ncolors,firstreg,table) */
  36.     ULONG          crecsize;    /* Bytes allocated including extra WORDs        */
  37.     CRange          crng[MAX_CRNG];
  38.     SHORT          cyclecount[MAX_CRNG];
  39.  
  40. } DISP_DEF;
  41.  
  42.  
  43. //DISP_DEF Flags
  44. #define        DISP_OVERSCAN        0x00000003
  45. #define        DISP_OVERSCANX        0x00000001
  46. #define        DISP_OVERSCANY        0x00000002
  47. #define        DISP_CENTER        0x00000030
  48. #define        DISP_CENTERX        0x00000010
  49. #define        DISP_CENTERY        0x00000020
  50. #define        DISP_SCREEN        0x10000000
  51. #define        DISP_INTERLEAVED    0x20000000
  52. #define        DISP_ALLOCBM        0x40000000
  53. #define        DISP_BACKGROUND        0x80000000
  54. #define        DISP_XLPALETTE        0x01000000
  55. #define        DISP_NOPOINTER        0x02000000
  56. #define        DISP_XLMODEID        0x04000000
  57. #define        DISP_COP_INT        0x00100000
  58. #define        DISP_OPEN        0x00200000
  59. #define        DISP_DBUF        0x00010000
  60.